package com.hunt.model.dto;

import java.util.List;

/**
 * @author sjs
 * @className
 * @description
 * @date 2020/9/28
 */

public class BuySellEntity {

    /**
     * stock : [{"time":150003,"date":20200925,"price":56.2,"open":57.36,"yclose":57.35,"high":57.9,"low":56.05,"vol":333800,"amount":18976193,"amplitude":3.225806451612903,"increase":-2.005231037489102,"exchangerate":2.7107511574290255,"buy":[{"price":56.2,"vol":1},{"price":56.19,"vol":9},{"price":56.17,"vol":20},{"price":56.16,"vol":9},{"price":56.15,"vol":23}],"sell":[{"price":56.24,"vol":1},{"price":56.29,"vol":7},{"price":56.52,"vol":5},{"price":56.54,"vol":2},{"price":56.55,"vol":2}],"week":{"week1":-5.22765598650925,"week4":-6.535839015466493,"week13":-1.7235791815027768,"week26":133.17109637774053,"week52":133.17109637774053},"symbol":"300836.sz","name":"佰奥智能"}]
     * start : 0
     * end : 20
     * count : 1
     * ticket : 0
     * version : HQ.Stock 2.0
     * message : {"加载版块":0.0078000000000000005,"查询mongo":2.1977,"封装数据":0.034,"排序":0.005,"分页":0.0058000000000000005}
     * code : 0
     * servertime : 2020-09-25 16:33:18
     */

    private int start;
    private int end;
    private int count;
    private int ticket;
    private String version;
    private String message;
    private int code;
    private String servertime;
    private List<StockBean> stock;

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getEnd() {
        return end;
    }

    public void setEnd(int end) {
        this.end = end;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getTicket() {
        return ticket;
    }

    public void setTicket(int ticket) {
        this.ticket = ticket;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getServertime() {
        return servertime;
    }

    public void setServertime(String servertime) {
        this.servertime = servertime;
    }

    public List<StockBean> getStock() {
        return stock;
    }

    public void setStock(List<StockBean> stock) {
        this.stock = stock;
    }

    public static class StockBean {
        /**
         * time : 150003
         * date : 20200925
         * price : 56.2
         * open : 57.36
         * yclose : 57.35
         * high : 57.9
         * low : 56.05
         * vol : 333800
         * amount : 18976193
         * amplitude : 3.225806451612903
         * increase : -2.005231037489102
         * exchangerate : 2.7107511574290255
         * buy : [{"price":56.2,"vol":1},{"price":56.19,"vol":9},{"price":56.17,"vol":20},{"price":56.16,"vol":9},{"price":56.15,"vol":23}]
         * sell : [{"price":56.24,"vol":1},{"price":56.29,"vol":7},{"price":56.52,"vol":5},{"price":56.54,"vol":2},{"price":56.55,"vol":2}]
         * week : {"week1":-5.22765598650925,"week4":-6.535839015466493,"week13":-1.7235791815027768,"week26":133.17109637774053,"week52":133.17109637774053}
         * symbol : 300836.sz
         * name : 佰奥智能
         */

        private int time;
        private long date;
        private float price;
        private float open;
        private float yclose;
        private float high;
        private float low;
        private long vol;
        private long amount;
        private double amplitude;
        private double increase;
        private double exchangerate;
        private WeekBean week;
        private String symbol;
        private String name;//中文名
        private List<BuyBean> buy;
        private List<SellBean> sell;

        public int getTime() {
            return time;
        }

        public void setTime(int time) {
            this.time = time;
        }

        public long getDate() {
            return date;
        }

        public void setDate(long date) {
            this.date = date;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(float price) {
            this.price = price;
        }

        public double getOpen() {
            return open;
        }

        public void setOpen(float open) {
            this.open = open;
        }

        public double getYclose() {
            return yclose;
        }

        public void setYclose(float yclose) {
            this.yclose = yclose;
        }

        public double getHigh() {
            return high;
        }

        public void setHigh(float high) {
            this.high = high;
        }

        public double getLow() {
            return low;
        }

        public void setLow(float low) {
            this.low = low;
        }

        public long getVol() {
            return vol;
        }

        public void setVol(long vol) {
            this.vol = vol;
        }

        public long getAmount() {
            return amount;
        }

        public void setAmount(long amount) {
            this.amount = amount;
        }

        public double getAmplitude() {
            return amplitude;
        }

        public void setAmplitude(double amplitude) {
            this.amplitude = amplitude;
        }

        public double getIncrease() {
            return increase;
        }

        public void setIncrease(double increase) {
            this.increase = increase;
        }

        public double getExchangerate() {
            return exchangerate;
        }

        public void setExchangerate(double exchangerate) {
            this.exchangerate = exchangerate;
        }

        public WeekBean getWeek() {
            return week;
        }

        public void setWeek(WeekBean week) {
            this.week = week;
        }

        public String getSymbol() {
            return symbol;
        }

        public void setSymbol(String symbol) {
            this.symbol = symbol;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public List<BuyBean> getBuy() {
            return buy;
        }

        public void setBuy(List<BuyBean> buy) {
            this.buy = buy;
        }

        public List<SellBean> getSell() {
            return sell;
        }

        public void setSell(List<SellBean> sell) {
            this.sell = sell;
        }

        public static class WeekBean {
            /**
             * week1 : -5.22765598650925
             * week4 : -6.535839015466493
             * week13 : -1.7235791815027768
             * week26 : 133.17109637774053
             * week52 : 133.17109637774053
             */

            private double week1;
            private double week4;
            private double week13;
            private double week26;
            private double week52;

            public double getWeek1() {
                return week1;
            }

            public void setWeek1(double week1) {
                this.week1 = week1;
            }

            public double getWeek4() {
                return week4;
            }

            public void setWeek4(double week4) {
                this.week4 = week4;
            }

            public double getWeek13() {
                return week13;
            }

            public void setWeek13(double week13) {
                this.week13 = week13;
            }

            public double getWeek26() {
                return week26;
            }

            public void setWeek26(double week26) {
                this.week26 = week26;
            }

            public double getWeek52() {
                return week52;
            }

            public void setWeek52(double week52) {
                this.week52 = week52;
            }
        }

        public static class BuyBean {
            /**
             * price : 56.2
             * vol : 1
             */

            private double price;
            private long vol;

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public long getVol() {
                return vol;
            }

            public void setVol(long vol) {
                this.vol = vol;
            }
        }

        public static class SellBean {
            /**
             * price : 56.24
             * vol : 1
             */

            private double price;
            private long vol;

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public long getVol() {
                return vol;
            }

            public void setVol(long vol) {
                this.vol = vol;
            }
        }
    }
}
